package org.niugang.security.users.web;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Created by niugang on 2019/5/23/14:12
 */
@RestController
public class LoginController {


    @Autowired
    private UserDetailsService userDetailsService;

    @PostMapping("/authentication/form")
    private void checkUserInfo(String username,String password){
        userDetailsService.loadUserByUsername(username);
    }

}
